package com.kevin.user.server;

import com.kevin.common.event.UserRegisterEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;

/**
 * @author kevin
 * @version 1.0
 * @project life-tool
 * @description 用户服务
 * @date 2024/12/23 22:24:43
 */
@Service
public class UserServer {

    @Autowired
    private ApplicationEventPublisher applicationEventPublisher;


    /**
     * 用户注册
     */
    public void register() {
        applicationEventPublisher.publishEvent(new UserRegisterEvent(this));
    }

}
